package com.sx.manage.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;



/**
 * RestTemplate 自动配置
 * @author lenovo
 *
 */
@Configuration
@ComponentScan(basePackages ={"com.sx.manage.config"})
public class RestTemplateConfig {
	private  final Logger _log = LoggerFactory.getLogger(RestTemplateConfig.class);
	
	public RestTemplateConfig(){
		_log.info("spring RestTemplate start... ... ,");
	}
	
	@Bean
	public RestTemplate restTemplate(){
		return new RestTemplate();
	}
}

